// app.js
class AppBootHook {
  constructor(app) {
    this.app = app;
  }

  configWillLoad() {}

  async didLoad() {}

  async willReady() {}

  async didReady() {
    // 应用已经启动完毕
    //更新redis中的数据
    const ctx = await this.app.createAnonymousContext();
    await ctx.service.tool.redis.refreshRedis();
  }

  async serverDidReady() {}
}

module.exports = AppBootHook;
